//封装和token相关方法 存 取 删

const TOKEN_KEY = "token_key"

function setToken(token){
    console.log(token)
    localStorage.setItem(TOKEN_KEY,token)
}

function getToken(){
    return localStorage.getItem(TOKEN_KEY)
}

function removeToken(){
    localStorage.removeItem(TOKEN_KEY)
}

export {
    setToken,
    getToken,
    removeToken
}